package mr.ali.webvideo.controller;


import mr.ali.webvideo.model.CollectionUrl;
import mr.ali.webvideo.service.ICollectionUrlService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Mr-ali
 * @since 2025-08-16
 */
@RestController
@RequestMapping("/h5/collectionUrl")
public class CollectionUrlController {
    @Resource
    private ICollectionUrlService collectionUrlService;

    @GetMapping("/videoId")
    public List<CollectionUrl> getCollectionUrl(Integer videoId) {
        return collectionUrlService.getCollectionUrl(videoId);
    }
}
